 /*
 * @name: 远程任务报名
 * @Author: along
 * @Date: 2019-06-15
 * @Last Modified by: along
 * @Last Modified time: 2020-06-15
 */
<template>
    <div class="container workTasktration">
        <!-- header -->
        <div class="header-nav">
            <div class="header-left">
                <div class="header-new-box">
                    <p class="header-new-box-title">手机号或ID:</p>
                    <el-input
                        v-model="filterhead.task_phone"
                        placeholder="请输入内容"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">任务状态:</p>
                    <el-select
                        v-model="filterhead.task_status"
                        clearable
                        filterable
                        placeholder="请选择"
                        size="small"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in statusList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        />
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">任务名称:</p>
                    <el-input
                        v-model="filterhead.task_name"
                        placeholder="请输入内容"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
            </div>
            <div class="header-right">
                <div class="header-new-box">
                    <el-button
                        type="primary"
                        size="small"
                    >
                        搜索
                    </el-button>
                </div>
            </div>
        </div>
        <!-- /header -->

        <!-- table -->
        <el-table
            :data="tableData"
            height="100%"
            style="width: 100%;"
            border
            ref="workTasktration"
        >
            <el-table-column
                type="index"
                width="80"
                label="序号"
                align="center"
            />
            <el-table-column
                prop="student_info.true_name"
                label="用户昵称"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                prop="student_no"
                label="用户编号"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                prop="student_info.school"
                label="学校名称"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                prop="student_info.phone"
                label="手机号"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
                :width="140"
            >
                <template slot-scope="scope">
                    <p v-if="authResult.auth_phone_show">
                        {{ scope.row.student_info.phone }}
                    </p>
                    <p v-else>
                        {{ scope.row.student_info.phone | setPhone }}
                    </p>
                </template>
            </el-table-column>
            <el-table-column
                prop="task_info.title"
                label="任务名称"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                prop="task_info.hire_company_name"
                label="发布公司"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                prop="task_info.category"
                label="任务类型"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            >
                <template slot-scope="scope">
                    <p v-if="scope.row.task_info.category == 1">文字</p>
                    <p v-if="scope.row.task_info.category == 2">图片</p>
                    <p v-if="scope.row.task_info.category == 3">问卷</p>
                    <p v-if="scope.row.task_info.category == 4">短视频</p>
                </template>
            </el-table-column>
            <el-table-column
                prop="status"
                label="任务状态"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            >
                <template slot-scope="scope">
                    <p v-if="scope.row.status == 0">待提交</p>
                    <p v-if="scope.row.status == 1">待审核</p>
                    <p v-if="scope.row.status == -1">审核未通过</p>
                    <p v-if="scope.row.status == 2">审核通过</p>
                </template>
            </el-table-column>
            <el-table-column
                prop="create_time"
                label="提交时间"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
                :width="140"
            >
                <template slot-scope="scope">
                    {{ scope.row.create_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm') }}
                </template>
            </el-table-column>
            <el-table-column
                prop="remark"
                label="备注"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                label="操作"
                align="center"
                fixed="right"
                :width="120"
            >
                <template slot-scope="scope">
                    <div style="display: flex;flex-wrap:wrap">
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnCheck(scope.row, scope.$index)"
                            v-if="scope.row.status == 0 || scope.row.status == 1"
                        >
                            审核
                        </el-button>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnCheck(scope.row, scope.$index)"
                            v-if="scope.row.status == 2 || scope.row.status == -1"
                        >
                            查看
                        </el-button>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnExamine(scope.row, true)"
                            :disabled="scope.row.status == 2"
                        >
                            通过
                        </el-button>
                        <br>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnExamine(scope.row, false)"
                            :disabled="scope.row.status == -1"
                        >
                            不通过
                        </el-button>
                        <el-button
                            type="text"
                            class="curse-add"
                            @click="fnRemark(scope.row)"
                        >
                            备注
                        </el-button>
                        <!-- <el-button
                            type="text"
                            class="curse-add"
                            @click="fnCheckForm(scope.row)"
                        >
                            查看
                        </el-button> -->
                    </div>
                </template>
            </el-table-column>
        </el-table>
        <!-- /table -->

        <!-- /分页 -->
        <div class="pagination-wrapper clearfix">
            <el-pagination
                background
                layout="total, prev, pager, next"
                :current-page.sync="page.now_page"
                :total="page.total_count"
                :page-size="page.page_size"
                @current-change="getTableData"
            />
        </div>

        <!-- 审核弹窗 -->
        <el-dialog
            :visible.sync="exam.dialogVisible"
            width="620px"
            :close-on-click-modal="false"
            :title="exam.task_title"
            center
        >
            <div class="zd-examine">
                <div class="zd-examine-list">
                    <p class="zd-head-title">当页进度:</p>
                    <div class="zd-examine-line" >
                        <p
                            :style="{ width: 200 * (exam.pageIndex + 1) / exam.pageSize + 'px' }"
                            class="zd-examine-line-length"
                        />
                    </div>
                    <p class="zd-examine-page">{{ (exam.pageIndex + 1) + '/' + exam.pageSize }}</p>
                </div>
                <!-- 提交内容 -->
                <div
                    class="zd-examine-cont"
                    v-if="form_config_with_data.length > 0"
                >
                    <div
                        v-for="(item,index) in form_config_with_data"
                        :key="index"
                    >
                        <el-form
                            ref="form"
                            :model="exam.form"
                            label-width="80px"
                            :label-position="'left'"
                        >
                            <!-- images -->
                            <div v-if="item.type == 5">
                                <el-form-item :label="item.title">
                                    <div
                                        v-if="item.default.value.length > 0"
                                        class="zd-image"
                                        @click="fnImageView(item.default.value)"
                                    >
                                        <p
                                            v-for="(option,i) in item.default.value"
                                            :key="i"
                                            class="zd-image-list"
                                            :style="{background: `url(${option.value})`, backgroundSize: 'cover'}"
                                        />
                                    </div>
                                    <div v-else>--</div>
                                </el-form-item>
                            </div>
                            <!-- video -->
                            <div v-if="item.type == 9">
                                <el-form-item :label="item.title">
                                    <div
                                        v-if="item.default.value.length > 0"
                                        class="zd-image"
                                    >
                                        <p
                                            v-for="(option,i) in item.default.value"
                                            :key="i"
                                            class="zd-video-list"
                                        >
                                            <video
                                                width="150"
                                                height="150"
                                                controls
                                                :poster="option.video_cover_url"
                                            >
                                                <source
                                                    :src="option.video_url"
                                                    type="video/mp4"
                                                >
                                            </video>
                                        </p>
                                    </div>
                                    <div v-else>已人工提交了短视频</div>
                                </el-form-item>
                            </div>
                            <!-- text/textarea -->
                            <div v-if="item.type == 1 || item.type == 6">
                                <el-form-item :label="item.title">
                                    <div
                                        v-if="item.default.value"
                                        class="zd-text"
                                    >
                                        {{ item.default.value }}
                                    </div>
                                    <div v-else>--</div>
                                </el-form-item>
                            </div>
                            <!-- radio -->
                            <div v-if="item.type == 2">
                                <el-form-item :label="item.title">
                                    <div
                                        v-if="item.options.length > 0"
                                        class="zd-text"
                                    >
                                        <el-radio
                                            v-for="(option,i) in item.options"
                                            :key="i"
                                            :label="option.title"
                                            v-model="radio[option.value]"
                                        >
                                            {{ option.title }}
                                        </el-radio>
                                    </div>
                                    <div v-else>--</div>
                                </el-form-item>
                            </div>
                            <!-- checkbox -->
                            <div v-if="item.type == 3">
                                <el-form-item :label="item.title">
                                    <div
                                        v-if="item.options.length > 0"
                                        class="zd-text"
                                    >
                                        <el-checkbox
                                            v-for="(option,i) in item.options"
                                            :key="i"
                                            :label="option.value"
                                            v-model="checkbox"
                                        >
                                            {{ option.title }}
                                        </el-checkbox>
                                    </div>
                                    <div v-else>--</div>
                                </el-form-item>
                            </div>
                        </el-form>
                    </div>
                </div>
                <!-- 操作 -->
                <div
                    class="zd-examine-list"
                    style="align-items: center"
                    :style="{ 'pointerEvents' : exam.dialog_status ? '' : 'none' }"
                >
                    <p class="zd-head-title">不通过理由:</p>
                    <el-input
                        type="textarea"
                        :autosize="{ minRows: 2, maxRows: 6}"
                        placeholder="请输入内容"
                        v-model="exam.reason"
                    />
                </div>
                <div class="zd-foot">
                    <div class="zd-foot-left">
                        <el-button
                            type="primary"
                            size="mini"
                            style="margin-right: 10px"
                            v-if="exam.status == 0 || exam.status == 1"
                            :disabled="exam.status == 2"
                            @click="fnDialogSuccess()"
                        >
                            通过
                        </el-button>
                        <el-button
                            size="mini"
                            v-if="exam.status == 0 || exam.status == 1"
                            :disabled="exam.status == -1"
                            @click="fnDialogError()"
                        >
                            不通过
                        </el-button>
                        <el-tag
                            type="info"
                            style="cursor: not-allowed"
                            v-if="exam.status == 2"
                        >
                            审核已通过
                        </el-tag>
                        <el-tag
                            type="info"
                            style="cursor: not-allowed"
                            v-if="exam.status == -1"
                        >
                            审核未通过
                        </el-tag>
                    </div>
                    <div class="zd-foot-right">
                        <i class="el-icon-arrow-left"/>
                        <p
                            class="zd-foot-prev"
                            @click="fnPrevtData()"
                        >
                            上一条反馈
                        </p>
                        <p
                            class="zd-foot-next"
                            @click="fnNexttData()"
                        >
                            下一条反馈
                        </p>
                        <i class="el-icon-arrow-right"/>
                    </div>
                </div>
            </div>
        </el-dialog>

        <!-- 图片预览 -->
        <img-preview ref="preview" />
    </div>
</template>

<script>
import imgPreview from '@/components/common/img-preview';
import { back } from '@/mixin/back';

export default {
    mixins: [back],
    components: {
        imgPreview
    },
    data () {
        return {
            form_config_with_data: [],//审核表单提交数据
            radio: {},//单选题答案集合
            checkbox: [],//多选填集合
            exam: {
                pageIndex: 0,//当前索引
                pageSize: 0,//当页申请条数
                dialogVisible: false,//审核弹窗
                reason: '',//不通过理由
                dialog_status: true,//是否可填写不通过理由
                task_title: '',//任务名称
                form: {},
                status: '',//当前弹窗审核状态
            },
            filterhead: {
                task_phone: '',
                task_status: 99,
                task_name: '',
                task_no: ''
            },
            statusList: [{
                value: 99,
                label: '全部'
            },{
                value: 1,
                label: '待审核'
            },{
                value: 0,
                label: '待提交'
            },{
                value: -1,
                label: '审核未通过'
            },{
                value: 2,
                label: '审核通过'
            }],
            page: {
                now_page: 1,
                total_count: 0,
                page_size: 0
            },
            tableData: [],
            authResult: {},
            openDialog: false
        };
    },
    filters: {
        setPhone (val) {
            var reg = new RegExp("(\\d{3})(\\d{4})(\\d{4})");

            if(val) {
                var tel = val.replace(reg, "$1****$3");

                return tel;
            } else {
                return '';
            }
        }
    },
    computed: {},
    watch: {},
    created () {
        let query = this.$route.query;

        if(query.task_no) {//远程任务查看提交
            this.$set(this.filterhead, 'task_no', query.task_no);
        }

        if(query.task_no && query.student_no) {
            this.$set(this.filterhead, 'task_no', query.task_no);
            this.openDialog = true;
        }
    },
    mounted () {
        let query = this.$route.query;

        this.$store.commit('SET_HEADER', [{ title: "APP后台"},{title: '工作'},{title: '远程任务报名'}]);
        this.authResult = this.$route.meta.authResult;
        this.getTableData();

        console.log(this.authResult, 'authResult');

        //跳转当前页面打开审核弹窗
        if(this.openDialog) {
            this.fnCheck({
                task_no: query.task_no,
                student_no: query.student_no
            }, 0);
        }
    },
    methods: {
        /**
         * 获取表格数据
         */
        getTableData (page) {
            this.$post('/student/taskonline_student_task%5Cget_list', {
                page_id: page || this.page.now_page,
                keyword_student_id: this.filterhead.task_phone,
                status: this.filterhead.task_status,
                taskonline_title: this.filterhead.task_name,
                task_no: this.filterhead.task_no
            }, resp => {
                if (resp.code == 1) {
                    this.tableData = resp.data.list;
                    this.page.now_page = resp.data.page.now_page;
                    this.page.total_count = resp.data.page.total_count;
                    this.page.page_size = resp.data.page.page_size;

                    //计算当前页数据数量
                    if(resp.data.page.total_count == 1) {
                        this.exam.pageSize = resp.data.page.total_count;
                    } else if (resp.data.page.total_count > 1 && resp.data.page.next_page > 0) {
                        this.exam.pageSize = 20;
                    } else if (resp.data.page.total_count > 1 && resp.data.page.next_page == 0) {
                        this.exam.pageSize = resp.data.page.total_count - (resp.data.page.now_page - 1) * 20;
                    }
                }
            });
        },

        /**
         * 上一条
         */
        fnPrevtData () {
            if(this.exam.pageIndex == 0) {
                this.$message({
                    type: 'waring',
                    message: '当前已经是第一条了',
                    center: true
                });
                return;
            }
            this.exam.pageIndex--;

            //表单提交数据
            this.fnCheck({
                status: this.tableData[this.exam.pageIndex].status,
                task_no: this.tableData[this.exam.pageIndex].task_no,
                student_no: this.tableData[this.exam.pageIndex].student_no,
            }, this.exam.pageIndex);
        },

        /**
         * 下一条
         */
        fnNexttData () {
            if(this.exam.pageIndex == this.exam.pageSize - 1) {
                this.$message({
                    type: 'waring',
                    message: '当前已经是最后一条了',
                    center: true
                });
                return;
            }
            this.exam.pageIndex++;

            //表单提交数据
            this.fnCheck({
                status: this.tableData[this.exam.pageIndex].status,
                task_no: this.tableData[this.exam.pageIndex].task_no,
                student_no: this.tableData[this.exam.pageIndex].student_no,
            }, this.exam.pageIndex);
        },

        /**
         * 弹窗审核通过
         */
        fnDialogSuccess () {
            this.$confirm('是否确认通过审核?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.$post('/student/taskonline_student_task%5Cverify',{
                    task_no: this.tableData[this.exam.pageIndex].task_no,
                    verify: 2,
                    student_no: this.tableData[this.exam.pageIndex].student_no
                },resp=>{
                    if (resp.code == 1) {
                        this.getTableData();
                        this.$set(this.exam, 'status', 2);
                        this.$set(this.exam, 'reason', '');
                        this.$notify({
                            title: '成功',
                            message: '操作成功',
                            type: 'success'
                        });
                    } else if (resp.code == 0) {
                        this.$notify({
                            title: '警告',
                            message: resp.msg,
                            type: 'warning'
                        });
                    }
                });
            });
        },

        /**
         * 弹窗审核不通过
         */
        fnDialogError () {
            if(this.exam.reason == '') {
                this.$notify({
                    title: '警告',
                    message: '请填写不通过的理由',
                    type: 'warning'
                });
                return;
            }

            this.$post('/student/taskonline_student_task%5Cverify',{
                task_no: this.tableData[this.exam.pageIndex].task_no,
                verify: -1,
                verify_fail_reason: this.exam.reason,
                student_no: this.tableData[this.exam.pageIndex].student_no,
            },resp=>{
                if (resp.code == 1) {
                    this.getTableData();
                    this.$set(this.exam, 'status', -1);
                    this.$notify({
                        title: '成功',
                        message: '操作成功',
                        type: 'success'
                    });
                } else if (resp.code == 0) {
                    this.$notify({
                        title: '警告',
                        message: resp.msg,
                        type: 'warning'
                    });
                }
            });
        },

        /**
         * 查看信息审核
         */
        fnCheck (row, index) {
            this.$set(this.exam, 'status', row.status);
            this.$set(this.exam, 'pageIndex', index);

            this.$post('/student/taskonline_student_task%5Cget_form_data', {
                task_no: row.task_no,
                student_no: row.student_no
            }, resp => {
                if(resp.code == 1) {
                    let form_config_with_data = resp.data.form_config_with_data;
                    let checkList = [];

                    //单选/多选题答题
                    for(let key in form_config_with_data) {
                        if(form_config_with_data[key].type == 2) {
                            for(let i in form_config_with_data[key].options) {
                                if(form_config_with_data[key].options[i].default_selected) {
                                    this.radio[form_config_with_data[key].options[i].value] = form_config_with_data[key].options[i].title;
                                }
                            }
                        }
                        if(form_config_with_data[key].type == 3) {
                            for(let i in form_config_with_data[key].options) {
                                if(form_config_with_data[key].options[i].default_selected) {
                                    checkList.push(form_config_with_data[key].options[i].value);
                                }
                            }
                        }
                    }
                    //不通过理由弹窗状态查询
                    if(row.status == -1) {
                        this.exam.reason = resp.data.verify_fail_reason;
                        this.exam.dialog_status = false;
                    } else {
                        this.exam.reason = '';
                        this.exam.dialog_status = true;
                    }

                    //数据及弹窗状态处理
                    this.checkbox = checkList;
                    this.exam.task_title = resp.data.task_title;
                    this.form_config_with_data = form_config_with_data;
                    this.exam.dialogVisible = true;
                } else {
                    this.$notify({
                        title: '警告',
                        message: resp.msg,
                        type: 'warning'
                    });
                }
            });
        },

        /**
         * 审核
         */
        fnExamine (row, param) {
            if(param) {
                this.$confirm('是否确认通过审核?', '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$post('/student/taskonline_student_task%5Cverify',{
                        task_no: row.task_no,
                        verify: 2,
                        student_no: row.student_no
                    },resp=>{
                        if (resp.code == 1) {
                            this.getTableData();
                            this.$notify({
                                title: '成功',
                                message: '操作成功',
                                type: 'success'
                            });
                        } else if (resp.code == 0) {
                            this.$notify({
                                title: '警告',
                                message: resp.msg,
                                type: 'warning'
                            });
                        }
                    });
                });
            } else {
                this.$prompt('请输入不通过的原因', '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    inputPattern: /\S/,
                    inputErrorMessage: '内容不可以为空'
                }).then(({ value }) => {
                    this.$post('/student/taskonline_student_task%5Cverify',{
                        task_no: row.task_no,
                        verify: -1,
                        verify_fail_reason: value,
                        student_no: row.student_no
                    },resp=>{
                        if (resp.code == 1) {
                            this.getTableData();
                            this.$notify({
                                title: '成功',
                                message: '操作成功',
                                type: 'success'
                            });
                        } else if (resp.code == 0) {
                            this.$notify({
                                title: '警告',
                                message: resp.msg,
                                type: 'warning'
                            });
                        }
                    });
                });
            }
        },

        /**
         * 备注
         */
        fnRemark (row) {
            this.$prompt('请输入备注内容', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                inputPattern: /\S/,
                inputErrorMessage: '内容不可以为空'
            }).then(({ value }) => {
                this.$post('/student/taskonline_student_task%5Cset_remark',{
                    task_no: row.task_no,
                    student_no: row.student_no,
                    remark: value
                },resp=>{
                    if (resp.code == 1) {
                        this.getTableData();
                        this.$notify({
                            title: '成功',
                            message: '操作成功',
                            type: 'success'
                        });
                    } else if (resp.code == 0) {
                        this.$notify({
                            title: '警告',
                            message: resp.msg,
                            type: 'warning'
                        });
                    }
                });
            });
        },

        /**
         * 图片预览处理
         */
        fnImageView (row) {
            let list = row.reduce((cur,next) => {
                cur.push(next.value);

                return cur;
            }, []);

            this.fnShowPreview(list);
        },

        /**
         * 查看图片
         * @param   {String}    images      //单图预览
         * @param   {Array}     images      //多图预览
         */
        fnShowPreview(images) {
            if(images && Object.prototype.toString.call(images) == '[object String]') {
                this.$refs.preview.show([
                    images
                ]);
            } else if (images && Object.prototype.toString.call(images) == '[object Array]') {
                this.$refs.preview.show(images);
            } else {
                this.$message({
                    type: 'warning',
                    message: '图片类型错误'
                });
            }
        },

        /**
         * 过滤函数
         */
        emptyFormatter(row, column, val) {
            if (!val) return '--';
            return val;
        }
    }
};
</script>

<style lang="less" scoped>
    .container {
        background-color: #fff;
        padding: 10px 15px 5px 15px;
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        .header-nav {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            .header-left, .header-right {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
            }
            .header-new-box {
                display: flex;
                margin-right: 15px;
                align-items: center;
                color: #606266;
                margin-bottom: 10px;
                white-space: nowrap;
                &-title {
                    margin-right: 2px;
                    white-space: nowrap;
                }
            }
        }
        /* 表单 */
        .scope-price {
            width: 50px;
            height: 50px;
        }
        /* 字体高亮 */
        .cursor-font {
            color: rgb(64, 158, 255);
            cursor: pointer;
        }
        /* 分页 */
        .pagination-wrapper {
            padding-top: 10px;
            padding-bottom: 10px;
            .el-pagination {
                float: right;
                padding: 0;
                background-color: transparent;
            }
        }
    }
    /* 排序 */
    .sort-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        .sort-spliter {
            width: 1px;
            height: 12px;
            background: rgba(235, 235, 235, 1);
            margin: 0 10px;
            }
            .btn-sort {
            font-size: 14px;
            line-height: 1;
            color: #ccc;
            &:hover {
                color: #20a0ff;
            }
        }
    }
    .el-button-left {
        margin-left: 40px;
    }
    .el-button-right {
        margin-right: 10px;
    }
    /* 审核弹窗 */
    .zd-examine {
        width: 100%;
        .zd-examine-list {
            min-height: 20px;
            display: flex;
            padding-bottom: 30px;
            box-sizing: border-box;
            align-items: flex-start;
            .zd-head-title {
                color: #606285;
                font-size: 14px;
                margin-right: 20px;
                white-space: nowrap;
                width: 65px;
            }
            .zd-info {
                width: 400px;
                display: flex;
                flex-wrap: wrap;
                .zd-info-label {
                    width: 200px;
                    min-height: 20px;
                    font-size: 14px;
                    color: #333;
                    margin-bottom: 15px;
                }
            }
            .zd-examine-line {
                width: 200px;
                height: 12px;
                border-radius: 6px;
                background: rgba(64, 158, 255, .2);
                .zd-examine-line-length {
                    height: 12px;
                    border-radius: 6px;
                    background: rgba(64, 158, 255, 1);
                    transition: all .5s;
                }
            }
            .zd-examine-page {
                font-size: 14px;
                color: #333;
                margin-left: 10px;
            }
        }
        .zd-foot {
            display: flex;
            justify-content: space-between;
            .zd-foot-left, .zd-foot-right {
                display: flex;
                height: 32px;
                align-items: center;
                cursor: pointer;
                user-select:none;
                .zd-foot-prev {
                    font-size: 14px;
                    color: #333;
                    margin-right: 15px;
                    // &:hover {
                    //     color: #20a0ff;
                    // }
                }
                .zd-foot-next {
                    font-size: 14px;
                    color: #333;
                    // &:hover {
                    //     color: #20a0ff;
                    // }
                }
            }
        }
        .zd-video {
            width: 320px;
            height: 200px;
            overflow: hidden;
            box-sizing: border-box;
            border: 1px red solid;
            video {
                object-fit: fill;
            }
        }
        .zd-examine-cont {
            width: 100%;
            max-height: 400px;
            overflow: hidden;
            overflow-y: auto;
            margin-bottom: 20px;
            .zd-image {
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                .zd-image-list {
                    width: 150px;
                    height: 150px;
                    margin-right: 8px;
                    margin-bottom: 10px;
                    cursor: pointer;
                }
                .zd-video-list {
                    width: 150px;
                    height: 150px;
                    margin-right: 8px;
                    margin-bottom: 10px;
                    cursor: pointer;
                    box-sizing: border-box;
                }
            }
            &::-webkit-scrollbar {
                width: 2px;
            }
        }
    }
</style>
<style lang="less">
    .workTasktration{
        .el-table__body-wrapper .el-table__body .el-table__row td {
            border-right: none;
        }
        .el-table__header-wrapper .el-table__header .has-gutter tr th {
            border-right: none;
        }
        .el-table .el-table_1_column_6  .cell {
            position: relative;
        }
        .el-range-editor--small .el-range-separator{
            padding: 0 1px !important;
        }
        .el-form-item__label {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .zd-video-list {
            border: none;
            video {
                border: none;
            }
        }
    }
</style>